package com.dadaguai.enums;

/**
 * 响应状态码枚举类
 */
public enum ResponseEnum {
    CODE_200(200,"请求成功"),
    CODE_500(500,"服务器错误"),
    CODE_600(600,"请求参数错误"),
    CODE_601(601,"内容已存在");

    private Integer code;
    private String message;

    ResponseEnum(Integer code,String message){
        this.message = message;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
